

@RestController
@RequestMapping("/sysVersionManage")
public class SysVersionManageController {

    @Resource
    private SysVersionManageService sysVersionManageService;


    /**
     * 获取 SysVersionManage 分页列表
     */
    @GetMapping("/pagination")
    public Ret getSysVersionManagePagination( PaginationVo paginationVo, SysVersionManageQuery sysVersionManageQuery ) throws Exception {
        IPage page = sysVersionManageService.getSysVersionManagePagination(paginationVo, sysVersionManageQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 SysVersionManage 所有数据
     */
    @GetMapping("/all")
    public Ret getSysVersionManageAllList( SysVersionManageQuery sysVersionManageQuery ) throws Exception {
        List<SysVersionManageEntity> list = sysVersionManageService.getSysVersionManageAllList( sysVersionManageQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 SysVersionManage 详情
    */
   @GetMapping("/{id}")
   public Ret getSysVersionManageDetail(@PathVariable Long id) throws Exception {

       SysVersionManageEntity sysVersionManage = sysVersionManageService.getSysVersionManageDetail(id);
       return Ret.ok(sysVersionManage);
   }


    /**
     * 新增 SysVersionManage
     * */
    @PostMapping("")
    public Ret addSysVersionManage(@RequestBody SysVersionManageVo sysVersionManageVo) throws Exception {

        sysVersionManageService.addSysVersionManage(sysVersionManageVo);
        return Ret.ok();
    }


    /**
     * 更新 SysVersionManage
     * */
    @PutMapping("")
    public Ret updateSysVersionManage(@RequestBody SysVersionManageVo sysVersionManageVo) throws Exception {

        sysVersionManageService.updateSysVersionManage(sysVersionManageVo);
        return Ret.ok();
    }


    /**
     * 删除 SysVersionManage
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveSysVersionManage( @RequestBody List<Long> ids ) throws Exception {

        sysVersionManageService.batchRemoveSysVersionManage(ids);
        return Ret.ok();
    }
}

  